package com.cuiweiyou.happypaint.util;

import android.graphics.Color;

import java.util.Random;

public class RandomColorUtil {
    private static int left = -50;
    private static int right = 50;
    private static Random random = new Random();

    public static int getSimilarPrimaryColor() {
        int diff = random.nextInt(right - left + 1) + left;

        int rgb = getColor(63 + diff, 81 + diff, 181 + diff);// <color name="colorPrimary">#3F51B5</color>
        return rgb;
    }

    public static int getColor(int red, int green, int blue) {
        int rgb = Color.rgb(red, green, blue);
        return rgb;
    }
}
